<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<link rel="stylesheet" type="text/css" href="js/uploadify/uploadify.css"/>
		<style type="text/css">
			#t2,#t3{
				display: none;
			}
			.hide{
				display: none;
			}
			.active{
				display: block;
			}
			
			.thumb_img{
			    border: 1px solid #c7c7c7;
			    padding: 3px;
			    margin: 0px 10px 3px;
			    width: 93px;
			    height: 111px;
			    text-align: center;
			}
			
		</style>
	</head>
	<body>
		<div class="content">
			<a href="http://insight-movie-database.gdinsight.com"><img class="logo" src="img/logo.jpg"/></a>
			<h1 id="t1">需求表单(公关活动)</h1>
			<h1 id="t2">需求表单(租图租字)</h1>
			<h1 id="t3">需求表单(外发兼职)</h1>
			<p id="email" email='' style="display: none;"></p>
			<a href="http://insight-movie-database.gdinsight.com" style='float: right;margin-top: -9px;'>返回首页</a>
			<div class="underline"></div>
			<form action="" method="post">
				<div class="type">
					<div class="title fl">需求类型&nbsp;&nbsp;&nbsp;</div>
					<div class="fl">
						<a  class="type_a pointer active_t" onclick="Tab(1)">公关活动</a>
						<a  class="type_a pointer" onclick="Tab(2)">租图租字</a>
						<a  class="type_a pointer" onclick="Tab(3)">外发兼职</a>
					</div>
					<br />
				</div>
				<!-- 公关活动 -->
				<div id="d1" number="1" class="active">
					<p class="order_code hide" name="101"></p>
					<div class="time">
						<p class='ord_title'>
							<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="order_title" id="" value="" class="post" />	
						</p>						
						<div class="input_25 fl">
							<span>执行时间&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="time" id="time" value="" class="post" />	
						</div>
						
						<div class="input_25 fl margin_b20">
							<span>费用预算&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="budget" id="" value="" class="post" />
						</div>
						
						<div class="clear"></div>
						
						<div class="margin_b20">
							<span>验收标准&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="standard" id="" value="" class="post" placeholder="请用数据表示"/>	
						</div>
					</div>
					
					<div class="title fl time">具体需求</div>
					<textarea name="content_1" rows="" cols="" class="post"></textarea>
					
					<div class="clear"></div>
					
					<div class="title fl">跟进内容</div>
					<textarea name="content_2" rows="" cols="" class="post" placeholder="请填写需要工程部跟进的具体内容"></textarea>
					<div class="clear"></div>
					<div class="fl">上传方案&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="file_upload_fan" name="file_upload" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传pdf,ppt格式的文件）</p>
					<div class="clear"></div>
					<div id="file_upload_fan_thumb">
						<div class="clear"></div> 
					</div>
				</div>
				
				
				<!-- 租图租字  -->
				<div id="d2" number="2" class="hide">
					<p class="order_code hide" name="102"></p>
					<div class="time">
						<p class='ord_title'>
							<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="order_title" id="" value="" class="post" />	
						</p>						
						<div class="input_25 fl">
							<span>图片编号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="photo_id" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl ">
							<span>字体类型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="font_type" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl ">
							<span>使用范围&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="range" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl margin_b20">
							<span>使用期限&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="service_time" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl">
							<span>使用用途&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="service_purpose" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl">
							<span>图片大小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<select name="photo_size" value="10m" class="post">
								<option value="10m">10m</option>
						        <option value="30m">30m</option>
						        <option value="50m">50m</option>
						        <option value="70m（待确认）">70m（待确认）</option>
							</select>
						</div>
						<div class="clear"></div>
					</div>
					
					<div class="title fl">项目&nbsp;&nbsp;&nbsp;</div>
					<textarea name="content_2" rows="" cols="" class="post"></textarea>
					<div class="clear"></div>
					<div class="title fl">客户(客户全称)&nbsp;&nbsp;&nbsp;</div>
					<textarea name="content_1" rows="" cols="" class="post"></textarea>
					<div class="clear"></div>
					
					<div class="fl">上传图片&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
					<div class="fl"><input class=""  id="file_upload_zutu" name="file_upload" type="file" multiple="true" /></div>
					<p class="fl red">（*请上传图片格式的文件）</p>
					<div class="clear"></div>
					<div id="file_upload_zutu_thumb">
						<div class="clear"></div> 
					</div>
				</div>
				<!-- 兼职 -->
				<div id="d3" number="3" class="hide">
					<p class="order_code hide" name="103"></p>
					<div class="time">
						<p class='ord_title'>
							<span>订单标题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="order_title" id="" value="" class="post" />	
						</p>						
						<div class="input_25 fl">
							<span>使用时长&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="service_time" id="" value="" class="post" />	
						</div>
						
						<div class="input_25 fl margin_b20">
							<span>具体数量&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="quantity" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl margin_b20">
							<span>兼职人数&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="expand_jz_num" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl margin_b20">
							<span>所属团队&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="expand_team" id="" value="" class="post" />
						</div>
						<div class="input_25 fl margin_b20">
							<span>具体客户&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="expand_kehu" id="" value="" class="post" />
						</div>
						
						<div class="input_25 fl margin_b20">
							<span>要求提交时间&nbsp;&nbsp;&nbsp;</span>
							<input type="text" name="expand_jz_submittime" id="time2" value="" class="post" />
						</div>
						
						<div class="input_25" style='margin-bottom: 15px;'>
							<span>兼职类型&nbsp;&nbsp;&nbsp;</span>
							<select name="part_time_type" class="post">
								<option value="翻译">翻译</option>
						        <option value="美指">美指</option>
						        <option value="正稿">正稿</option>
						        <option value="PPT">PPT</option>
						        <option value="文案">文案</option>
						        <option value="插画师">插画师</option>
						        <option value="其他">其他</option>
							</select>
						</div>
						
						<div class="clear"></div>
						
						<div class="space_14">
							<span class='fl time title' style='width:88px'>兼职人员姓名&nbsp;&nbsp;&nbsp;</span>
							<textarea class="fl post" name="expand_jz_name" rows="" cols="" placeholder="姓名用','隔开" ></textarea>
							<div class="clear"></div>
						</div>
						
						<div class="space_14">
							<span class='fl time title' style='width:88px'>具体需求&nbsp;&nbsp;&nbsp;</span>
							<textarea class="fl post" name="expand_jutixuqu" rows="" cols="" ></textarea>
							<div class="clear"></div>
						</div>
						<p>（注：需提前24小时以工作单形式提交需求给采购部）</p>
					</div>
				</div>
				
				<br />
				<input type="button" id="submit" value="提交需求" class="fr submit"/>
			</form>
		</div>
		
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="jedate/jedate.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/uploadify/jquery.uploadify.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		
		uploadify('#file_upload_fan');
		uploadify('#file_upload_zutu');
		
			//登录检查
			$.ajax({
				type:"post",
				url:"./app/index.php?m=index&a=islogin",
				success:function(ret){
					if(ret.code == '101'){
						window.location.href='./login.html';
					}
				}
			});
			function Tab(num){
			    var i;
			    for(i=1;i<=3;i++)
			    {
			        if(i==num){
			        	document.getElementById("t"+i).style.display="block";
			        	$("#d"+i).addClass("active")
			         	$("#d"+i).removeClass("hide")
			        }else{
			         	document.getElementById("t"+i).style.display="none";
			        	$("#d"+i).addClass("hide")
			         	$("#d"+i).removeClass("active")
			        }
			           
			    }
			}
			
			jeDate({
				dateCell:"#time",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			jeDate({
				dateCell:"#time2",//isinitVal:true,
				format:"YYYY-MM-DD"
			})
			
			$("#submit").click(function(){
				data_post();
			})
			
			$(".pointer").click(function(){
				$(this).addClass("active_t")
				$(this).siblings().removeClass("active_t")
			})
		</script>
	</body>
</html>